﻿package ygg.encoding.swf.abc.structure
{
	public class MetadataInfo
	{
		private var _name:String;
		private var _items:Object;
		
		public function toString():String
		{
			var last:String;
			var s:String = last = '[' + name + '(';
			var n:*;
			
			for (n in items)
			{
				s = (last = s + n + "=" + '"' + items[n] + '"') + ',';
			}
			
			return last + ')]';
		}
		
		public function get name():String { return _name; }
		
		public function set name(value:String):void
		{
			_name = value;
		}
		
		public function get items():Object { return _items; }
		
		public function set items(value:Object):void
		{
			_items = value;
		}
	}
}